.class Lcom/example/zsccpsapp/StaticActivity$7;
.super Ljava/lang/Thread;
.source "StaticActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/example/zsccpsapp/StaticActivity;->getSource()Z
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/example/zsccpsapp/StaticActivity;


# direct methods
.method constructor <init>(Lcom/example/zsccpsapp/StaticActivity;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lcom/example/zsccpsapp/StaticActivity$7;->this$0:Lcom/example/zsccpsapp/StaticActivity;

    .line 225
    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 13

    .prologue
    const/4 v12, 0x1

    .line 227
    invoke-super {p0}, Ljava/lang/Thread;->run()V

    .line 229
    new-instance v4, Landroid/os/Message;

    invoke-direct {v4}, Landroid/os/Message;-><init>()V

    .line 231
    .local v4, "msg":Landroid/os/Message;
    sget-object v9, Ljava/lang/System;->out:Ljava/io/PrintStream;

    const-string v10, "\u5f00\u59cb\u6293\u53d6\u6570\u636e---"

    invoke-virtual {v9, v10}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    .line 232
    iget-object v9, p0, Lcom/example/zsccpsapp/StaticActivity$7;->this$0:Lcom/example/zsccpsapp/StaticActivity;

    .line 233
    const-string v10, "userInfo"

    const/4 v11, 0x0

    .line 232
    invoke-virtual {v9, v10, v11}, Lcom/example/zsccpsapp/StaticActivity;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v6

    .line 234
    .local v6, "preferences":Landroid/content/SharedPreferences;
    const-string v9, "uid"

    const-string v10, ""

    invoke-interface {v6, v9, v10}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 235
    .local v0, "account":Ljava/lang/String;
    const-string v9, "pass"

    const-string v10, ""

    invoke-interface {v6, v9, v10}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    .line 236
    .local v5, "password":Ljava/lang/String;
    if-eqz v0, :cond_0

    const-string v9, ""

    invoke-virtual {v0, v9}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v9

    if-eqz v9, :cond_1

    .line 237
    :cond_0
    invoke-static {}, Lmyapp/Util;->dismisDialog()V

    .line 238
    const-string v9, "nologin"

    iput-object v9, v4, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 239
    iput v12, v4, Landroid/os/Message;->arg1:I

    .line 240
    sget-object v9, Lcom/example/zsccpsapp/StaticActivity;->h:Landroid/os/Handler;

    invoke-virtual {v9, v4}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 297
    :goto_0
    return-void

    .line 246
    :cond_1
    new-instance v9, Ljava/lang/StringBuilder;

    iget-object v10, p0, Lcom/example/zsccpsapp/StaticActivity$7;->this$0:Lcom/example/zsccpsapp/StaticActivity;

    iget-object v10, v10, Lcom/example/zsccpsapp/StaticActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v10}, Lmyapp/MyApp;->getWebConfig()Ljava/lang/String;

    move-result-object v10

    invoke-static {v10}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v10

    invoke-direct {v9, v10}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    .line 247
    const-string v10, "/index.php?ctrl=psuser&action=psyapptj&datatype=json&uid="

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    const-string v10, "&pwd="

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    .line 246
    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v8

    .line 248
    .local v8, "url":Ljava/lang/String;
    sget-object v9, Ljava/lang/System;->out:Ljava/io/PrintStream;

    new-instance v10, Ljava/lang/StringBuilder;

    const-string v11, "\u8c03\u7528\u66f4\u65b0\u6570\u636e----------------------------"

    invoke-direct {v10, v11}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v10, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v9, v10}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    .line 249
    invoke-static {v8}, Lmyclass/HttpConn;->getStr(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    .line 250
    .local v7, "str":Ljava/lang/String;
    sget-object v9, Ljava/lang/System;->out:Ljava/io/PrintStream;

    new-instance v10, Ljava/lang/StringBuilder;

    const-string v11, "\u8fd4\u56de\u6570\u636e"

    invoke-direct {v10, v11}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v10, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v10

    invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v9, v10}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    .line 253
    :try_start_0
    new-instance v3, Lorg/json/JSONObject;

    invoke-direct {v3, v7}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 255
    .local v3, "json":Lorg/json/JSONObject;
    const-string v9, "error"

    invoke-virtual {v3, v9}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    const-string v10, "true"

    invoke-virtual {v9, v10}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v9

    if-eqz v9, :cond_2

    .line 256
    invoke-static {}, Lmyapp/Util;->dismisDialog()V

    .line 258
    const-string v9, "msg"

    invoke-virtual {v3, v9}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    iput-object v9, v4, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 259
    const/4 v9, 0x1

    iput v9, v4, Landroid/os/Message;->arg1:I

    .line 260
    sget-object v9, Lcom/example/zsccpsapp/StaticActivity;->h:Landroid/os/Handler;

    invoke-virtual {v9, v4}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 289
    .end local v3    # "json":Lorg/json/JSONObject;
    :catch_0
    move-exception v1

    .line 291
    .local v1, "e":Lorg/json/JSONException;
    invoke-virtual {v1}, Lorg/json/JSONException;->printStackTrace()V

    .line 292
    invoke-static {}, Lmyapp/Util;->dismisDialog()V

    .line 294
    const/4 v9, 0x4

    iput v9, v4, Landroid/os/Message;->arg1:I

    .line 295
    sget-object v9, Lcom/example/zsccpsapp/StaticActivity;->h:Landroid/os/Handler;

    invoke-virtual {v9, v4}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto/16 :goto_0

    .line 263
    .end local v1    # "e":Lorg/json/JSONException;
    .restart local v3    # "json":Lorg/json/JSONObject;
    :cond_2
    :try_start_1
    const-string v9, "msg"

    invoke-virtual {v3, v9}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v9

    if-eqz v9, :cond_3

    .line 264
    invoke-static {}, Lmyapp/Util;->dismisDialog()V

    .line 265
    const/4 v9, 0x2

    iput v9, v4, Landroid/os/Message;->arg1:I

    .line 266
    sget-object v9, Lcom/example/zsccpsapp/StaticActivity;->h:Landroid/os/Handler;

    invoke-virtual {v9, v4}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto/16 :goto_0

    .line 270
    :cond_3
    const-string v9, "msg"

    invoke-virtual {v3, v9}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v9

    if-nez v9, :cond_4

    .line 271
    iget-object v9, p0, Lcom/example/zsccpsapp/StaticActivity$7;->this$0:Lcom/example/zsccpsapp/StaticActivity;

    const-string v10, "msg"

    invoke-virtual {v3, v10}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v10

    iput-object v10, v9, Lcom/example/zsccpsapp/StaticActivity;->message:Ljava/lang/String;

    .line 273
    :cond_4
    sget-object v9, Ljava/lang/System;->out:Ljava/io/PrintStream;

    const-string v10, "\u8f6c\u6362\u6570\u636e"

    invoke-virtual {v9, v10}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    .line 275
    const-string v9, "msg"

    invoke-virtual {v3, v9}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v2

    .line 276
    .local v2, "js":Lorg/json/JSONObject;
    iget-object v9, p0, Lcom/example/zsccpsapp/StaticActivity$7;->this$0:Lcom/example/zsccpsapp/StaticActivity;

    const-string v10, "dayccost"

    invoke-virtual {v2, v10}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v10

    invoke-static {v9, v10}, Lcom/example/zsccpsapp/StaticActivity;->access$23(Lcom/example/zsccpsapp/StaticActivity;Ljava/lang/String;)V

    .line 277
    iget-object v9, p0, Lcom/example/zsccpsapp/StaticActivity$7;->this$0:Lcom/example/zsccpsapp/StaticActivity;

    const-string v10, "dayshuliang"

    invoke-virtual {v2, v10}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v10

    invoke-static {v9, v10}, Lcom/example/zsccpsapp/StaticActivity;->access$24(Lcom/example/zsccpsapp/StaticActivity;Ljava/lang/String;)V

    .line 278
    iget-object v9, p0, Lcom/example/zsccpsapp/StaticActivity$7;->this$0:Lcom/example/zsccpsapp/StaticActivity;

    const-string v10, "weektccost"

    invoke-virtual {v2, v10}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v10

    invoke-static {v9, v10}, Lcom/example/zsccpsapp/StaticActivity;->access$25(Lcom/example/zsccpsapp/StaticActivity;Ljava/lang/String;)V

    .line 279
    iget-object v9, p0, Lcom/example/zsccpsapp/StaticActivity$7;->this$0:Lcom/example/zsccpsapp/StaticActivity;

    const-string v10, "weekshuliang"

    invoke-virtual {v2, v10}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v10

    invoke-static {v9, v10}, Lcom/example/zsccpsapp/StaticActivity;->access$26(Lcom/example/zsccpsapp/StaticActivity;Ljava/lang/String;)V

    .line 280
    iget-object v9, p0, Lcom/example/zsccpsapp/StaticActivity$7;->this$0:Lcom/example/zsccpsapp/StaticActivity;

    const-string v10, "monthccost"

    invoke-virtual {v2, v10}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v10

    invoke-static {v9, v10}, Lcom/example/zsccpsapp/StaticActivity;->access$27(Lcom/example/zsccpsapp/StaticActivity;Ljava/lang/String;)V

    .line 281
    iget-object v9, p0, Lcom/example/zsccpsapp/StaticActivity$7;->this$0:Lcom/example/zsccpsapp/StaticActivity;

    const-string v10, "monthshuliang"

    invoke-virtual {v2, v10}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v10

    invoke-static {v9, v10}, Lcom/example/zsccpsapp/StaticActivity;->access$28(Lcom/example/zsccpsapp/StaticActivity;Ljava/lang/String;)V

    .line 284
    sget-object v9, Ljava/lang/System;->out:Ljava/io/PrintStream;

    const-string v10, "\u8fd4\u56de\u6570\u636e\u7ed3\u675f"

    invoke-virtual {v9, v10}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    .line 285
    invoke-static {}, Lmyapp/Util;->dismisDialog()V

    .line 286
    sget-object v9, Ljava/lang/System;->out:Ljava/io/PrintStream;

    const-string v10, "\u5173\u95ed\u63d0\u793a"

    invoke-virtual {v9, v10}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    .line 287
    const/4 v9, 0x3

    iput v9, v4, Landroid/os/Message;->arg1:I

    .line 288
    sget-object v9, Lcom/example/zsccpsapp/StaticActivity;->h:Landroid/os/Handler;

    invoke-virtual {v9, v4}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
    :try_end_1
    .catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_0

    goto/16 :goto_0
.end method

.method public declared-synchronized start()V
    .locals 1

    .prologue
    .line 300
    monitor-enter p0

    :try_start_0
    invoke-super {p0}, Ljava/lang/Thread;->start()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 301
    monitor-exit p0

    return-void

    .line 300
    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method
